<template>
  <el-col v-if="grid" v-bind="$attrs">
    <slot />
  </el-col>
  <template v-else>
    <slot />
  </template>
</template>

<script setup>
defineProps({ grid: { type: Boolean, default: false } })
defineOptions({
  name: 'RowWrapper',
  inheritAttrs: false,
})
</script>

<style scoped lang="scss"></style>
